Unicorn redis inialization fiz 4

jamesperet 9 years ago
parent
commit
e83804a4a2
1 changed files with 1 additions and 2 deletions
  1. 1 2
      config/unicorn.rb

+ 1 - 2
config/unicorn.rb

@@ -28,8 +28,7 @@ after_fork do |server, worker|
28 28
  
29 29
   # If you are using Redis but not Resque, change this
30 30
   if defined?(Resque)
31
-    uri = URI.parse(ENV["REDISTOGO_URL"])
32
-    Resque.redis = uri
31
+    Resque.redis = REDIS
33 32
     Rails.logger.info('Connected to Redis')
34 33
   end
35 34
 end